package com.yyr.callmessage.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.Map;

@Configuration
@PropertySource(value="classpath:url-map.properties",ignoreResourceNotFound = true,encoding = "UTF-8")
@ConfigurationProperties("url")
public class UrlMapConfig {

    private Map<String, String> map;

    public Map<String, String> getMap() {
        return map;
    }
    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public String getValue(String key) {
        return map.get(key);
    }
}
